package top.fengyulou.xiaofeng.service;

import org.springframework.stereotype.Service;
import top.fengyulou.xiaofeng.mapper.ExamUserMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author  guochao
 * @date  2022/1/26 0:50
 * @version 1.0
 */
@Service
public class ExamUserService {

    @Resource
    private ExamUserMapper examUserMapper;

    //删除
    public void delete(String[] ids){
        examUserMapper.delete(ids);
    }

    public List<String> getUserIdListByExamId(String examId) {
        return examUserMapper.getUserIdListByExamId(examId);
    }

    public long countByExamId(String examId) {
        return examUserMapper.countByExamId(examId);
    }
}
